package gsp420;

import java.awt.Graphics;

abstract public class Entity
{
	/** position */
	public Vector2D p = new Vector2D();
	/** velocity */
	public Vector2D v = new Vector2D();
	
	public Entity(double x, double y)
	{
		p.x = x; p.y = y;
	}
	
	abstract public void draw(Graphics g);
	
	public void update(double seconds)
	{
		p.add(v.product(seconds));
	}
	
	abstract public boolean isCollidingWith(Entity e);
}
